
import React , { useEffect } from 'react'
import { App as AntdApp, ConfigProvider } from 'antd';
import { routerList } from './router/index';
import { RouterProvider } from 'react-router-dom';
import zhCN from 'antd/es/locale/zh_CN';  // 引入中文语言包

function App() {
  return (
    <ConfigProvider locale={zhCN}>
      <AntdApp>
        <RouterProvider
          router={routerList}
          future={{
            v7_startTransition: true
          }}
        />
      </AntdApp>
    </ConfigProvider>
  )
}

export default App
